package ma.shi.android;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.content.Intent;

public class fight extends Activity{
	@Override
    public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
        setContentView(R.layout.fight);
        enemyLife = (TextView) findViewById(R.id.enemyLife);
        heroLife = (TextView) findViewById(R.id.heroLife);
        heroMana = (TextView) findViewById(R.id.heroMana);
        petLife = (TextView) findViewById(R.id.petLife);
        setTextViewValue();
        Button escape = (Button)findViewById(R.id.escape);
        escape.setOnClickListener(new Button.OnClickListener()
        {
        	public void onClick(View v)
        	{
        		Intent intent = new Intent();
        		intent.setClass(fight.this, game_view.class);
        		startActivity(intent);
        		fight.this.finish();
        	}
        });
	}
	private void setTextViewValue(){
		enemyLife.setText("80/100");
		heroLife.setText("90/100");
		heroMana.setText("30/50");
		petLife.setText("40/60");
	}
	
	private TextView enemyLife;
	private TextView heroLife;
	private TextView heroMana;
	private TextView petLife;
	

}
